/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 38917
 * Date: 2025-02-25
 * Time: 22:27
 */
public class IsLeap {
    public static void main(String[] args) {
        for (int i = 1000; i < 2001; i++) {
            if (i % 400 == 0 || (i % 4 == 0 && i % 100 != 0)){
                System.out.print(i + "是闰年 ");
            }
        }
    }
}
